package com.sjgs.gis.config;

import com.sjgs.gis.fs.store.DefaultKVStore;
import org.springframework.boot.context.properties.EnableConfigurationProperties;
import org.springframework.cloud.commons.util.UtilAutoConfiguration;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.Import;

@Configuration
@EnableConfigurationProperties({KVStoreProperties.class})
@Import(UtilAutoConfiguration.class)
public class KVStoreConfiguration {
    @Bean
    DefaultKVStore createDefaultKVStore(KVStoreProperties kvStoreProperties){
        return new DefaultKVStore(kvStoreProperties);
    }
}
